from ..func.resize_func import ResizeFunctions


def resize_scale(clip, scale_ratio=2.0, duration=None):
    if duration is None:
        duration = clip.duration
    return clip.resize(ResizeFunctions.scale(clip.size, duration, scale_ratio))
